package com.xw.controller.api;

import com.xw.model.CityDicArea;
import com.xw.service.CityDicAreaService;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;

/**
 * @需求描述:
 * @创建人:whh
 * @创建时间: 2019/11/26
 * @修改需求:
 * @修改人:
 * @修改时间:
 * @需求思路:
 */
@Controller
@RequestMapping("/api/cityDicArea/")
@Scope("prototype")
public class ApiCityDicAreaController {

    @Resource
    private CityDicAreaService cityDicAreaService;


    @RequestMapping(value = "findCityDicArea",method = RequestMethod.POST)
    @ResponseBody
    public Object findCityDicArea(String areaName,Integer pid , Integer level){


        return cityDicAreaService.findCityDicArea(areaName,pid,level);
    }


}
